function setPrice(pid)
{
    var url = '/bidding/setPrice.html?product_id=' + pid;
    PopLayer.iframe(url);
}

function setLimit()
{
    var url = '/bidding/setLimit.html';
    PopLayer.iframe(url);
}


function submitInvalid()
{
    var url = '/order/submitInvalid.html';
    PopLayer.iframe(url);
}

function gotoBiddingAnchor()
{
    var href = $(this).attr("href");
    var pos = $("#anchor").offset().top;
    $("html,body").animate({scrollTop: pos}, 800);
    return false;
}

function openDialog(el)
{
    var demoDialog = new PopLayer({
        target  : el,
        beforeOpen: function(){
            return true;
        }
    });
    demoDialog.open();
    $.center(el);
}
